<!DOCTYPE html>
<html>

<head>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background: red;
            animation: colorChange 3s infinite linear running;
        }

        .box:hover {
            animation-play-state: paused;
        }

        @keyframes colorChange {
            0% {
                background: teal;
            }

            50% {
                background: pink;
            }

            100% {
                background: orange;
            }
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>